package com.atguigu.cloud.service;

import com.atguigu.cloud.entities.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
* @author yangnan
* @description 针对表【t_account】的数据库操作Service
* @createDate 2025-03-05 20:25:31
*/
public interface AccountService extends IService<Account> {
    /**
     * 扣减账户余额
     * @param userId 用户id
     * @param money 本次消费金额
     */
    void decrease(@Param("userId") Long userId, @Param("money") Long money);
}